const baseUrl = 'http://192.168.22.3:8992';
// const baseUrl = 'http://10.255.7.127:8992';
export const uploadImage = (name, content) => {
  let parm = {
    'Content-Type': 'application/json;charset=utf-8',
    method: 'POST',
    body: JSON.stringify({image: content, name: name}),
    timeout: 5000,
  };
  return fetch(baseUrl + '/predict', parm).then(res => res.json());
};
